home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 003.dms / 003.adf / TEXT / chapter6.txt < prev    next >
Text File  |  1992-09-02  |  4KB  |  157 lines

  1.  
  2.               The Absolute Beginners Guide To Amos
  3.               -------------------------------------
  4.                          Chapter Six
  5.                          -----------
  6.  
  7. In this chapter I think it`s necessary to have a brief look back at all of
  8. the commands we have covered so far.
  9.  
  10. I think you will be surprised at just how much you have learnt already.  
  11. Below is roughly what your note book should look like, but more detailed.  
  12. You have been taking notes haven`t you?
  13.  
  14. Please note the following is not a program.
  15.  
  16. :          : A colon, used to separate commands on one line
  17.  
  18. `          : Apostrophe, similar use as REM but only at the start of a line
  19.  
  20. $          : denotes a string e.g. A$  F$  FRED$  GO$
  21.  
  22. CURS OFF   : Turn the text cursor off
  23.  
  24. CURS ON    : Switch the text cursor on
  25.  
  26. CLS N      : Clear the screen using the colour N (0-15 default)
  27.  
  28. DEC        : Subtract 1 from a variable e.g. DEC A
  29.  
  30. EDIT       : Return to the EDITor from your program
  31.  
  32. FSEL$ etc. : Call up the Amos file selector for the user to load/save a file
  33.  
  34. FOR NEXT   : A looping structure, executes commands in-between FOR and NEXT
  35.  
  36. HIDE       : HIDE the mouse pointer from view
  37.  
  38. IF THEN    : IF a statement is true THEN execute the following commands
  39.  
  40. INC        : Add 1 to a variable e.g. INC A
  41.  
  42. LINE INPUT : Receive text or number INPUT from keyboard as a variable
  43.  
  44. LOADIFF    : LOAD an IFF picture from disk
  45.  
  46. PAPER N    : The background colour of any string PRINTed onto the screen
  47.  
  48. PRINT      : PRINT "TEXT"   PRINT variable  or PRINT $variable
  49.  
  50. REM        : Short for REMark, used to add comments to listings. see also `
  51.  
  52. Variable   : A name holding a value that can be changed e.g. A=10
  53.  
  54. WAIT KEY   : WAIT for the user to press any KEY before continuing
  55.  
  56.  
  57. If at this stage you fully understand half or more of the above then you are
  58. doing extremely well, if you think you understand less than half then have
  59. a read of the previous chapters and look in your Amos manual for more info.
  60.  
  61.  
  62. The first version of Basic I tried to learn was on the Commodore Vic 20, 
  63. remember that great machine? Anyway the Vic 20 came with a programming 
  64. course on audio tape as well as a programs tape and on the audio tape was a 
  65. spoken quiz to test yourself on what you should have previously learnt from 
  66. the course.  This really helped me to learn a lot more than just reading 
  67. about it.  We don`t have an audio tape with this course so we will have to 
  68. make do with you reading it out to yourselves.  I suppose I could of got Amos
  69. to read out the questions to you, but those commands come in a later chapter.
  70. By the way you can use your notes if you wish. 
  71.  
  72. So, without further ado, here is the first of our Absolute Beginners Quizzes.
  73.  
  74.  
  75. Q1 . What does the N in CLS N stand for?
  76.  
  77.   a) Nothing
  78.   b) A colour number 
  79.   c) Node activated
  80.  
  81.  
  82. Q2 . What does the PAPER command effect?
  83.  
  84.   a) The background colour of any text printed
  85.   b) The foreground colour of any text printed
  86.   c) The actual colour of any text printed
  87.  
  88.  
  89. Q3 . What is the opposite command to HIDE?
  90.  
  91.   a) Seek        
  92.   b) Slide
  93.   c) Show
  94.  
  95.  
  96. Q4 . What is wrong with the following line?   
  97.      PRINT "HELLO
  98.  
  99.   a) The second quote mark is missing
  100.   b) The first quote shouldn`t be there
  101.   c) You cannot PRINT the word HELLO
  102.  
  103.  
  104. Q5 . What is the WAIT KEY command waiting for the user to press? 
  105.  
  106.   a) The Mouse 
  107.   b) Any key
  108.   c) The Joystick
  109.  
  110.  
  111. Q6 . What type of variable is A$?
  112.  
  113.   a) A string variable
  114.   b) A numerical variable
  115.   c) A transitional coagulating dot matrix turbo variable
  116.  
  117.  
  118. Q7 . What does the LOADIFF command achieve?
  119.  
  120.   a) Loads an IFF picture
  121.   b) Erases an IFF picture
  122.   c) Saves an IFF sample
  123.  
  124.  
  125. Q8 . If A=5 and the next line reads, A=A+7, what does A now equal?
  126.  
  127.   a) 5
  128.   b) 12
  129.   c) -5
  130.  
  131. Q9 . What would the value of A be after the following lines?
  132.      A=1     
  133.      IF A=1 THEN  DEC A 
  134.  
  135.   a) 0
  136.   b) 1
  137.   c) 2
  138.  
  139.  
  140. Q10. What is wrong with the following line?
  141.      PRINT "HELLO": REM just a remark here  :PRINT "AMOS"
  142.  
  143.   a) The word AMOS won`t be printed because of the REM
  144.   b) Hello will never be printed because of the REM
  145.   c) The REM will be printed
  146.      
  147.  
  148.  
  149. Mark down a, b or c for each answer and check them against the answers given
  150. in chapter seven.
  151.  
  152.  
  153. End of chapter six.
  154.  
  155.  
  156.   
  157.